package models;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

import javax.persistence.*;

import play.db.jpa.Model;


 @Entity  
@Table (name="Servico") 
public class Servico extends Model {
	
	
	 
	   
	  @ManyToMany  
	  @JoinTable(  
	  name="Func_Res",  
	  joinColumns=@JoinColumn(name="Serv_ID", referencedColumnName="ID"),  
	  inverseJoinColumns=@JoinColumn(name="Func_ID", referencedColumnName="ID")  
	       )     
	   
	public List<Funcionario> funcionario;
	
	public String nome;
	public double valor;
	public String idfuncionario;
	
	
	
}
	
